﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using System.Windows.Input;

using System.Windows;

namespace HA.ModFlow.Controls
{
    public  static class AppCommands
    {

        static AppCommands()
        {
            newProject = new RoutedUICommand("新建项目","NewProject",typeof(AppCommands));
           
            saveProject = new RoutedUICommand("保存项目", "SaveProject", typeof(AppCommands));

            closeProject = new RoutedUICommand("关闭项目","CloseProject",typeof(AppCommands));

            openProject = new RoutedUICommand("打开项目","OpenProject",typeof(AppCommands));

            configGrid = new RoutedUICommand("配置网格","ConfigGrid",typeof (AppCommands));

            runModFlow = new RoutedUICommand("运行modflow","RunModFlow",typeof(AppCommands));

            globalOption = new RoutedCommand("全局选项",typeof(AppCommands));

            stressPeriod = new RoutedCommand("应力期", typeof(AppCommands));
            package = new RoutedCommand("包", typeof(AppCommands));
            unit = new RoutedCommand("单位", typeof(AppCommands));
            iBound = new RoutedCommand("IBOUND边界", typeof(AppCommands));
            startHead = new RoutedCommand("初始水头", typeof(AppCommands));
            topElevation = new RoutedCommand("顶部高程", typeof(AppCommands));
            botElevation = new RoutedCommand("底部高程", typeof(AppCommands));
            conBed = new RoutedCommand("隔水层", typeof(AppCommands));

            outputControl = new RoutedCommand("输出控制",typeof(AppCommands));

            //源汇项部分
            wellEdit = new RoutedCommand("井", typeof(AppCommands));

            resetView = new RoutedUICommand("重置3dView","ResetView",typeof(AppCommands));

            _LpfEdit = new RoutedUICommand("编辑LPF", "LPFEdit", typeof(AppCommands));
            _BcfEdit = new RoutedUICommand("编辑BCF", "BCFEdit", typeof(AppCommands));
            _SipEdit = new RoutedUICommand("编辑SIP", "SIPEdit", typeof(AppCommands));
            _PcgEdit = new RoutedUICommand("编辑PCG", "PCGEdit", typeof(AppCommands));
            _DE4Edit = new RoutedUICommand("编辑DE4", "ED4Edit", typeof(AppCommands));

            _TopView = new RoutedUICommand("顶视图", "TopView", typeof(AppCommands));
            _FrontView = new RoutedUICommand("前视图", "FrontView", typeof(AppCommands));
            _RightView = new RoutedUICommand("右视图", "RightView", typeof(AppCommands));
            _CheckModflow = new RoutedUICommand("较验MODFLOW", "CheckModflow", typeof(AppCommands));

           

            _ConstantHeadEdit = new RoutedUICommand("编辑ConstantHead", "ConstantHeadEdit ", typeof(AppCommands));
            _RiverEdit = new RoutedUICommand("编辑River", "RiverEdit", typeof(AppCommands));
            _GneralHeadEdit = new RoutedUICommand("编辑GneralHead","GneralHead", typeof(AppCommands));
            _DrainEdit = new RoutedUICommand("编辑Drain", "DrainEdit", typeof(AppCommands));
            _WallEdit = new RoutedUICommand("编辑Wall", "WallEdit", typeof(AppCommands));
            _RechargeEdit = new RoutedUICommand("编辑Recharge", "RechargeEdit", typeof(AppCommands));
            _EvapostransEdit = new RoutedUICommand("编辑Evapostrans", "EvapostransEdit", typeof(AppCommands));
            _DisplayOption = new RoutedUICommand("显示选项", "DisplayOption", typeof(AppCommands));
            _InterpolatinOption = new RoutedUICommand("插值选项", "InterpolationOption", typeof(AppCommands));
            _BarrierEdit = new RoutedUICommand("屏障", "BarrierEdit", typeof(AppCommands));
        }


        #region 项目相关


        static RoutedUICommand saveProject;

        public static RoutedUICommand SaveProject
        {
            get { return AppCommands.saveProject; }
           
        }

        static RoutedUICommand openProject;

        public static RoutedUICommand OpenProject
        {
            get { return AppCommands.openProject; }
           
        }

        static RoutedCommand openProjectWithName=new RoutedCommand ();

        public static RoutedCommand OpenProjectWithName
        {
            get { return AppCommands.openProjectWithName; }
            
        }



        static RoutedUICommand closeProject;

        public static RoutedUICommand CloseProject
        {
            get { return AppCommands.closeProject; }
           
        }


        static RoutedUICommand newProject;

       


        public static RoutedUICommand NewProject
        {
            get { return newProject; }
        }
   


        #endregion


        #region 项目数据相关
        static RoutedUICommand configGrid;

        public static RoutedUICommand ConfigGrid
        {
            get { return AppCommands.configGrid; }
            
        }
        static RoutedCommand globalOption;

        public static RoutedCommand GlobalOption
        {
            get { return AppCommands.globalOption; }
        }

        static RoutedCommand stressPeriod;

        public static RoutedCommand StressPeriod
        {
            get { return AppCommands.stressPeriod; }
        }

        static RoutedCommand package;

        public static RoutedCommand Package
        {
            get { return AppCommands.package; }
            set { AppCommands.package = value; }
        }

        static RoutedCommand unit;

        public static RoutedCommand Unit
        {
            get { return AppCommands.unit; }
            set { AppCommands.unit = value; }
        }

        static RoutedCommand iBound;

        public static RoutedCommand IBound
        {
            get { return AppCommands.iBound; }
            set { AppCommands.iBound = value; }
        }

        static RoutedCommand startHead;

        public static RoutedCommand StartHead
        {
            get { return AppCommands.startHead; }
            set { AppCommands.startHead = value; }
        }

        static RoutedCommand topElevation;

        public static RoutedCommand TopElevation
        {
            get { return AppCommands.topElevation; }
            set { AppCommands.topElevation = value; }
        }

        static RoutedCommand botElevation;

        public static RoutedCommand BotElevation
        {
            get { return AppCommands.botElevation; }
            set { AppCommands.botElevation = value; }
        }

        static RoutedCommand conBed;

        public static RoutedCommand ConBed
        {
            get { return AppCommands.conBed; }
            set { AppCommands.conBed = value; }
        }

        private static RoutedCommand outputControl;

        public static RoutedCommand OutputControl
        {
            get { return AppCommands.outputControl; }
        }

        //源汇项部分
        private static RoutedCommand wellEdit;

        public static RoutedCommand WellEdit
        {
            get { return AppCommands.wellEdit; }
        }

        private static RoutedCommand _LpfEdit;

        /// <summary>
        /// Lpf
        /// </summary>
        public static RoutedCommand LpfEdit
        {
            get { return AppCommands._LpfEdit; }           
        }

        private static RoutedCommand _BcfEdit;
        /// <summary>
        /// BCF
        /// </summary>
        public static RoutedCommand BcfEdit
        {
            get { return AppCommands._BcfEdit; }           
        }
        private static RoutedCommand _SipEdit;
        /// <summary>
        /// SIP
        /// </summary>
        public static RoutedCommand SipEdit
        {
            get { return AppCommands._SipEdit; }           
        }
        private static RoutedCommand _PcgEdit;
        /// <summary>
        /// PCG
        /// </summary>
        public static RoutedCommand PcgEdit
        {
            get { return AppCommands._PcgEdit; }          
        }
        private static RoutedCommand _DE4Edit;
        /// <summary>
        /// DE4
        /// </summary>
        public static RoutedCommand DE4Edit
        {
            get { return AppCommands._DE4Edit; }          
        }


        //------------视图

        private static RoutedCommand _TopView;
        /// <summary>
        /// 顶视图
        /// </summary>
        public static RoutedCommand TopView
        {
            get { return AppCommands._TopView; }        
        }

        private static RoutedCommand _FrontView;
        /// <summary>
        /// 前视图
        /// </summary>
        public static RoutedCommand FrontView
        {
            get { return AppCommands._FrontView; }         
        }

        private static RoutedCommand _RightView;
        /// <summary>
        /// 右视图
        /// </summary>
        public static RoutedCommand RightView
        {
            get { return AppCommands._RightView; }          
        }




        private static RoutedCommand resetLayout=new RoutedCommand ();

        public static RoutedCommand ResetLayout
        {
            get { return AppCommands.resetLayout; }
           
        }






        private static RoutedCommand _CheckModflow;
        /// <summary>
        /// 较验MODFLOW
        /// </summary>
        public static RoutedCommand CheckModflow
        {
            get { return AppCommands._CheckModflow; }           
        }
      






        private static RoutedCommand _RiverEdit;

        public static RoutedCommand RiverEdit
        {
            get { return AppCommands._RiverEdit; }           
        }
        private static RoutedCommand _ConstantHeadEdit;

        public static RoutedCommand ConstantHeadEdit
        {
            get { return AppCommands._ConstantHeadEdit; }           
        }
        private static RoutedCommand _GneralHeadEdit;

        public static RoutedCommand GneralHeadEdit
        {
            get { return AppCommands._GneralHeadEdit; }            
        }
        private static RoutedCommand _DrainEdit;

        public static RoutedCommand DrainEdit
        {
            get { return AppCommands._DrainEdit; }         
        }
        private static RoutedCommand _WallEdit;

        public static RoutedCommand WallEdit
        {
            get { return AppCommands._WallEdit; }         
        }
        private static RoutedCommand _RechargeEdit;

        public static RoutedCommand RechargeEdit
        {
            get { return AppCommands._RechargeEdit; }          
        }
        private static RoutedCommand _EvapostransEdit;

        public static RoutedCommand EvapostransEdit
        {
            get { return AppCommands._EvapostransEdit; }          
        }

        private static RoutedCommand _DisplayOption;

        public static RoutedCommand DisplayOption
        {
            get { return AppCommands._DisplayOption; }           
        }
        private static RoutedCommand _InterpolatinOption;

        public static RoutedCommand InterpolatinOption
        {
            get { return AppCommands._InterpolatinOption; }       
        }

        private static RoutedCommand _BarrierEdit;

        public static RoutedCommand BarrierEdit
        {
            get { return AppCommands._BarrierEdit; }  
        }

        private static RoutedCommand _UzfEdit = new RoutedCommand();

        public static RoutedCommand UzfEdit
        {
            get { return AppCommands._UzfEdit; }           
        }

        #endregion



        #region 运行相关
        static RoutedUICommand runModFlow;

        public static RoutedUICommand RunModFlow
        {
            get { return AppCommands.runModFlow; }
           
        }

        #endregion

        #region 三维相关

        static RoutedUICommand resetView;

        public static RoutedUICommand ResetView
        {
            get { return AppCommands.resetView; }
           
        }

        #endregion

        #region 帮助信息
        static RoutedCommand _HelpInformation = new RoutedCommand();
        /// <summary>
        /// 帮助
        /// </summary>
        public static RoutedCommand HelpInformation
        {
            get { return AppCommands._HelpInformation; }        
        }
        static RoutedCommand _AbutInformation = new RoutedCommand();
        /// <summary>
        /// 关于
        /// </summary>
        public static RoutedCommand AbutInformation
        {
            get { return AppCommands._AbutInformation; }     
        }


        #endregion


    }
}
